﻿CREATE TRIGGER VacationYears_Tracking_Delete
ON [dbo].[VacationYears] 
AFTER delete
AS 
BEGIN
	UPDATE Sync.VacationYears_Tracking 
	SET LastUpdatedDate  = getdate(),
		IsDeleted = 1
	FROM Sync.VacationYears_Tracking s JOIN DELETED i
    ON s.VacationYearID = i.VacationYearID
END














